package reflect.proxyTest;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class PlayerProxy implements InvocationHandler {

    private static DefaultPlayerService defaultPlayerService = new DefaultPlayerService();

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        return method.invoke(defaultPlayerService, args);
    }
}
